package be.rugbyclubleuven.rachel.controller;

import javax.xml.xpath.XPathExpressionException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * Controller for the home page.
 * 
 */
@Controller
public class HomePageController {

	protected static final Logger LOGGER = LoggerFactory.getLogger(HomePageController.class);

	/**
	 * Handles the initialisation of the home page by setting the initial bread crumb value
	 * @param request the HTTP request we are processing
	 * @param response the HTTP response we are processing
	 * @return the redirection to the home page
	 * @throws XPathExpressionException
	 */
	@RequestMapping(value = "/ViewHome.form", method = RequestMethod.GET)
	public ModelAndView init() {
		return new ModelAndView("WEB-INF/index.html");
	}

}